package com.ssy.lingxi.settle.accounts.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 业务对账单excel 枚举
 * @author Houpengfei
 * @date 2021/12/14
 * @version 2.0.0
 */
public enum BusinessReconciliationExcelEnum {
    FROM_NAME(1, "对账单列表"),
    RECONCILIATION_NO(2, "对账单号"),
    RECONCILIATION_ABSTRACT(3, "对账单摘要"),
    PAYEE(4, "收款方"),
    PAYER(5, "付款方"),
    RECONCILIATION_MONEY_AMOUNT(6, "待对账金额（含税）"),
    CREATE_TIME(7, "单据时间"),
    STATUS(8, "状态"),
    MERGE(9, "对账单列表"),
    SHEET(10, "对账单明细列表数据"),
    ORDER_NO(11, "订单号"),
    SETTLEMENT_DATE(12, "预计结算日期"),
    DELIVERY_BATCH(13, "发货批次"),
    DELIVERY_NO(14, "发货单号"),
    RECEIVE_NO(15, "收货单号"),
    PRODUCT_NO(16, "物料编码"),
    NAME(17, "物料名称"),
    SPEC(18, "商品规格"),
    CATEGORY(19, "商品品类"),
    BRAND(20, "商品品牌"),
    UNIT(21, "单位"),
    TAX_RATE(22, "税率"),
    PRICE(23, "单价"),
    RECONCILIATION_QUANTITY(24, "待对账数量"),
    RECONCILIATION_MONEY_AMOUNT_TOTAL(25, "待对账金额"),
    CURRENT_QUANTITY(26, "本次对账数量"),
    CURRENT_MONEY(27, "本次对账金额"),
    MERGE_DETAIL(28, "对账单明细列表数据"),
    FILE_NAME(29, "供应对账单"),
    ;
    private final Integer code;
    private final String message;

    BusinessReconciliationExcelEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getDeclaringClass(), this.getCode());
    }

}
